package com.ruoyi.znjc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.znjc.mapper.ZnjcConversationsMapper;
import com.ruoyi.znjc.domain.ZnjcConversations;
import com.ruoyi.znjc.service.IZnjcConversationsService;

/**
 * 会话Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-26
 */
@Service
public class ZnjcConversationsServiceImpl implements IZnjcConversationsService 
{
    @Autowired
    private ZnjcConversationsMapper znjcConversationsMapper;

    /**
     * 查询会话
     * 
     * @param conversationId 会话主键
     * @return 会话
     */
    @Override
    public ZnjcConversations selectZnjcConversationsByConversationId(Long conversationId)
    {
        return znjcConversationsMapper.selectZnjcConversationsByConversationId(conversationId);
    }

    /**
     * 查询会话列表
     * 
     * @param znjcConversations 会话
     * @return 会话
     */
    @Override
    public List<ZnjcConversations> selectZnjcConversationsList(ZnjcConversations znjcConversations)
    {
        return znjcConversationsMapper.selectZnjcConversationsList(znjcConversations);
    }

    /**
     * 新增会话
     * 
     * @param znjcConversations 会话
     * @return 结果
     */
    @Override
    public int insertZnjcConversations(ZnjcConversations znjcConversations)
    {
        return znjcConversationsMapper.insertZnjcConversations(znjcConversations);
    }

    /**
     * 修改会话
     * 
     * @param znjcConversations 会话
     * @return 结果
     */
    @Override
    public int updateZnjcConversations(ZnjcConversations znjcConversations)
    {
        return znjcConversationsMapper.updateZnjcConversations(znjcConversations);
    }

    /**
     * 批量删除会话
     * 
     * @param conversationIds 需要删除的会话主键
     * @return 结果
     */
    @Override
    public int deleteZnjcConversationsByConversationIds(Long[] conversationIds)
    {
        return znjcConversationsMapper.deleteZnjcConversationsByConversationIds(conversationIds);
    }

    /**
     * 删除会话信息
     * 
     * @param conversationId 会话主键
     * @return 结果
     */
    @Override
    public int deleteZnjcConversationsByConversationId(Long conversationId)
    {
        return znjcConversationsMapper.deleteZnjcConversationsByConversationId(conversationId);
    }
}
